<!--#include file="../main/top.asp" -->
<script type="text/javascript" src="../js/ajax.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	levelChange();
	queryCollege();
	//collegeidChange();
});
</script>
<%levelArray = userLevel()%>
<div class="function_title"><span class="t2"><img src="../images/dqwz.gif">当前位置：添加用户</span></div>
<div class="function_content">
<div class="addItem"><img src="../images/back.png"><a href="adminUsersList.asp">返回列表</a></div>
<span class="important_info">注：带*项为必填信息!</span>
<form method="post" name="adminCommonUsersAdd" id="adminCommonUsersAdd" action="adminUsersAdd_do.asp" onSubmit="return Validator.Validate(this,3)">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="loginTable" >
  <tr>
    <td width="9%"  align="right" class="leftBg"><span class="important_info">*</span>用户名：</td>
    <td width="91%"  align="left"><input type="text" name="userName" id="userName" dataType="Require" msg="此项不能为空" /></td>
  </tr>
  <tr>
    <td align="right" class="leftBg"><span class="important_info">*</span>密码：</td>
    <td  align="left"><input type="password" name="password" id="password" dataType="Require" msg="此项不能为空" /></td>
  </tr>
  <tr>
    <td align="right" class="leftBg"><span class="important_info">*</span>重输密码：</td>
    <td  align="left"><input type="password" name="repeat_password" id="repeat_password" dataType="Repeat" to="password" msg="两次输入的密码不一致"/></td>
  </tr>
  <tr>
    <td  align="right" class="leftBg"><span class="important_info">*</span>真实姓名：</td>
    <td  align="left"><input type="text" name="realName" id="realName" dataType="Require" msg="此项不能为空" /></td>
  </tr>
  <tr>
    <td  align="right" class="leftBg">联系方式：</td>
    <td  align="left"><input type="text" name="telNum" id="telNum" dataType="Number" msg="此项必须数字" Require="false"/></td>
  </tr>
  <tr>
    <td align="right" class="leftBg"><span class="important_info">*</span>用户级别：</td>
    <td align="left">
    <select name="userLevel" id="userLevel" dataType="Require" msg="此项不能为空" >
    	<option value="">未选择</option>
        <%if levelArray(0)="0" or levelArray(0)="1" then%>
        	<option value="1">校级</option>
			<option value="2">院级</option>
			
		<%elseif levelArray(0)="2" then%>
        	<option value="2">院级</option>
      
        <%end if%>
    </select>
    </td>
  </tr>
  <tr>
    <td align="right" class="leftBg"><span class="important_info">*</span>可选角色：</td>
    <td align="left">
    <select name="selectRole" id="selectRole" dataType="Require" msg="此项不能为空">
    	<option value="">未选择</option>
    </select>
    </td>
  </tr>
  <tr id="college_line">
    <td align="right" class="leftBg"><span class="important_info">*</span>所管学院：</td>
    <td align="left">
    <select name="collegeid" id="collegeid" dataType="Require" msg="此项不能为空" >
    	<option value="">未选择</option>
    </select>
    </td>
  </tr>
  <tr>
    <td colspan="2" align="left"><div style=" margin-left:100px;"><input type="submit" name="loginButtomStu" id="loginButtomStu" class="button" value="提交"/></div></td>
    </tr>
</table>
</form>
</div>
<!--#include file="../main/bottom.asp" -->
